#include <iostream>
#include "vectorfunctions.h"

void primeswithK(int x[], int l, int k)
{
	int i;
	for(i=0;i<l;i++)
		if(isprime(x[i], k))
			cout<<x[i]<<" ";
	cout<<"\n";
}

int main()
{
	int l, k, no;
	int x[100];
	cout<<"Length of array : ";
	cin>>l;
	cout<<"Number : ";
	cin>>k;
	readVector(x, l);
	primeswithK(x, l, k);
return 0;
}
